package com.yst.metho.web.application.projectversion;

import nextapp.echo2.app.Extent;
import nextapp.echo2.app.Label;
import nextapp.echo2.app.SplitPane;

import com.yst.suivi.data.project.Project;

/**
 * Panneau d'affichage du detail d'un projet.
 * 
 * @author perso
 * 
 */
public class ProjectDetailPane extends SplitPane
{
	/** Hauteur par defaut de la barre d'outil */
	private static final Extent DEFAULT_TOOLBAR_HEIGHT = new Extent(18);

	public ProjectDetailPane(Project prj)
	{
		super(SplitPane.ORIENTATION_VERTICAL, DEFAULT_TOOLBAR_HEIGHT);
		Label label;
		StringBuffer buffer = new StringBuffer();
		buffer.append(prj.getCode());
		buffer.append(" - ");
		buffer.append(prj.getNom());
		label = new Label(buffer.toString());
		add(label);
		add(new ProjectDetailTabbedPane(prj));
	}
}
